package anim;

import vis.TextLabel;

public class SetLabelText extends Frame {
	private TextLabel label = null;
	private String oldText = "";
	private String text = "";
	
	public SetLabelText(TextLabel label, String text)
	{
		this.label = label;
		this.text = text;
	}
	
	@Override
	public void doFrame() {
		oldText = label.getText();
		label.setText(text);
	}

	@Override
	public void undoFrame() {
		label.setText(oldText);
	}

}
